const {
  createProxyMiddleware
} = require('http-proxy-middleware');

module.exports = app => {
  // 代理
  app.use(
    '/health',
    createProxyMiddleware({
      target: 'http://172.17.8.100',
      changeOrigin: true,
    })
  );
}
